<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../core/include.inc.jsp"%>

<style>
    .pageFormContent p {
        width: 90%;
    }
</style>

<div class="pageContent">

    <form method="post" action="act_add" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">

        <div class="pageFormContent nowrap" layoutH="57">
            <p>
                <label>权限名称</label>
                <input type="text" name="actName"
                       class="required" maxlength="20" />
            </p>

            <p>
                <label>权限识别ID</label>
                <input type="text" name="authId"
                       class="required digits" min="1" max="504" />
                <label>1~504的整数</label>
            </p>

            <p>
                <label>权限对应控制器</label>
                <input type="text" name="action"
                       class="" maxlength="50" />
                <label>操作请求的Action</label>
            </p>

            <p>
                <label>是否显示在导航栏</label>
                <input type="radio" name="isNav" value="true">显示</input>
                <input type="radio" name="isNav" value="false" checked="true">不显示</input>
            </p>

            <p>
                <label>排序</label>
                <input type="text" name="sort"
                       class="digits" min="0" max="10000" value="0"/>
                <label>值越大排序越优先</label>
            </p>

            <p>
                <label>选择父权限</label>
                <input name="act.actId" type="hidden"/>
                <input name="act.pActName" type="text" readonly="readonly" size="30" disabled="disabled"/>
                <a class="btnLook" href="actlookup" lookupGroup="act" lookupPk="actId">查找带回</a>
                <label>不填即为顶级模块</label>
            </p>

            <p>
                <label>备注</label>
                <textarea type="text" name="note" maxlength="40" cols="60" rows="4"/>
            </p>

        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent" style="text-align: center;">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>